package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "announcements")
public class Announcements implements java.io.Serializable{
    private ObjectId id; //公告id
    private String title; //公告标题
    private String description; //公告描述
    private Long created; //发布时间
    private String  type; //类型0->禁用,1->显示

}
